import Vue from 'vue'
import App from './App'
import store from '@/store';

// 假设您项目中已使用VueX
// import store from './store'
// Vue.prototype.$store = store

Vue.config.productionTip = false
App.mpType = 'app'

// 引入全局uView
import uView from '@/uview-ui'
Vue.use(uView)

const app = new Vue({
	store,
	...App
})

// 引入请求封装，将app参数传递到配置中
require('@/config/request.js')(app)
//集中管理的api
import api from 'config/api.js'
app.$u.api = api
//引入自定义的utils
import utils from 'config/utils.js'
Vue.use(utils,app)

let vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore);
app.$mount()